<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>家庭邀请</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background-color: #4CAF50;
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 5px;
        }
        .content {
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 5px;
            margin-top: 20px;
        }
        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            margin-top: 20px;
        }
        .footer {
            margin-top: 20px;
            text-align: center;
            color: #777;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>邀请加入家庭</h1>
    </div>
    <div class="content">
        <p th:text="'亲爱的 ' + ${name} + '，'"></p>
        <p>您已被邀请加入我们的家庭！请点击下面的按钮加入家庭：</p>
        <a th:href="@{${activationLink}(token=${token}, email=${email}, familyId=${familyId})}">立即加入</a>
    </div>
    <div class="footer">
        <p>此链接将在24小时后失效，请尽快激活。</p>
    </div>
    </body>
</html>